package com.demo.easyExcel.listen;
 
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.demo.easyExcel.pojo.People;


public class PeopleListener extends AnalysisEventListener<People> {
    @Override
    public void invoke(People student, AnalysisContext analysisContext) {
        //每解析一条数据 就会执行一次该方法
//        System.out.println("data --> "+student);
        System.out.println("解析了一条数据");
    }
 
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("解析数据完毕");
    }
}